<!DOCTYPE html>
<html>
<head>
	<title>input event test</title>
	<script type="text/javascript">
		window.onload = function(){
			ipt.oninput = function(event){
				console.log(event);
				this.value = this.value.toUpperCase();
			}
		}
	</script>
</head>
<body>
<input id="ipt" type="text" placehold="please input 大写字符" />
</body>
</html>